﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Symbonix.NorSoNet.Framework.BLL
{
    public abstract class EmailTemplateBase : IEmailTemplate
    {
        #region IEmailTemplate Members

        public abstract int Id
        {
            get;
            protected set;
        }

        public abstract string Name
        {
            get;
            set;
        }

        public abstract string Subject
        {
            get;
            set;
        }

        public abstract string Body
        {
            get;
            set;
        }

        public abstract DateTime? LastUpdate
        {
            get;
            set;
        }

        public abstract IEmailTemplate Load(int id);

        public abstract IEmailTemplate Update();

        public abstract IEmailTemplate Create(string name, string subject, string body);

        public abstract bool Delete(int id);

        public abstract bool Delete();

        public abstract bool Delete(string name);

        public abstract List<IEmailTemplate> GetAllTemplates();

        #endregion
    }
}
